<template>
	<view class="write">
		<button type="primary">写文章</button>
	</view>
</template>

<script>
	import { mapActions } from 'vuex'
	
	export default {
		onLaunch: function() {
			this.getUserId();
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
		  ...mapActions(['getUserId'])
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
